<div id="programma">
<?php
if($this->params['url']['url'] == "programma") {
?>
	<table>
		<tr>
			<th>Datum en tijd</th>
			<th>Thuis</th>
			<th>Uit</th>
		</tr>
	<?php
	foreach($moduleData as $key => $match) {
		$color = ($key % 2 == 0) ? "yellow" : "white";
		echo "<tr class=\"{$color}\">\n";
		echo "<td>{$match['Match']['viewdate']}</td><td>{$match['Match']['hometeam']}</td><td>{$match['Match']['visitorteam']}</td>\n";
		echo "</tr>\n";
	}
	?>
	</table>
<?php
}
else {
?>
	<table>
		<tr>
			<th>Datum en tijd</th>
			<th>Thuis</th>
			<th>Uit</th>
			<th>Uitslag</th>
		</tr>
	<?php
	foreach($moduleData as $key => $match) {
		$color = ($key % 2 == 0) ? "yellow" : "white";
		echo "<tr class=\"{$color}\">\n";
		echo "<td>{$match['Match']['viewdate']}</td><td>{$match['Match']['hometeam']}</td><td>{$match['Match']['visitorteam']}</td><td>{$match['Match']['result']}</td>\n";
		echo "</tr>\n";
	}
	?>
	</table>
<?php
}
?>
</div>